package com.benben.springSecurity.config;

import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@Configuration
public class SecurityConfig  {
//public class SecurityConfig extends WebSecurityConfigurerAdapter {

//    @Autowired
//    private AuthSuccessHandler  authSuccessHandler;
//
//    @Autowired
//    private AuthFailHandler  authFailHandler;

//    @Override
//    protected void configure(HttpSecurity http) throws Exception {
//        http
//                .formLogin()
//                .and()
//                .authorizeRequests()
//                .antMatchers("/add","/redis","/getCacheByName","/addRedis","/getRedisByKey","/addRedisList","/ececutor").permitAll()
//                .anyRequest() // 对所有的请求
//                .authenticated();
//    }
}
